import types


builtin = tuple((getattr(types, type_) for type_ in dir(types) 
                 if type_.endswith('Type')))


def isbuiltin(value):
    return isinstance(value, builtin)
